package com.aggregate.pay.swiftpass.bean;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;

/**
 * 【威富通】微信扫码预支付响应参数
 * @author Moyq5
 * @date 2019年2月19日
 */
@JacksonXmlRootElement(localName = "xml")
public class WeixinNativeResult extends AbstractResult {
	
	@JacksonXmlProperty(localName = "result_code")
	private Integer resultCode;
	@JacksonXmlProperty(localName = "mch_id")
	private String mchId;
	@JacksonXmlProperty(localName = "nonce_str")
	private String nonceStr;
	@JacksonXmlProperty(localName = "err_code")
	private String errCode;
	@JacksonXmlProperty(localName = "err_msg")
	private String errMsg;
	@JacksonXmlProperty(localName = "sign")
	private String sign;
	@JacksonXmlProperty(localName = "code_url")
	private String codeUrl;
	@JacksonXmlProperty(localName = "code_img_url")
	private String codeImgUrl;
	public Integer getResultCode() {
		return resultCode;
	}
	public void setResultCode(Integer resultCode) {
		this.resultCode = resultCode;
	}
	public String getMchId() {
		return mchId;
	}
	public void setMchId(String mchId) {
		this.mchId = mchId;
	}
	public String getNonceStr() {
		return nonceStr;
	}
	public void setNonceStr(String nonceStr) {
		this.nonceStr = nonceStr;
	}
	public String getErrCode() {
		return errCode;
	}
	public void setErrCode(String errCode) {
		this.errCode = errCode;
	}
	public String getErrMsg() {
		return errMsg;
	}
	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}
	public String getSign() {
		return sign;
	}
	public void setSign(String sign) {
		this.sign = sign;
	}
	public String getCodeUrl() {
		return codeUrl;
	}
	public void setCodeUrl(String codeUrl) {
		this.codeUrl = codeUrl;
	}
	public String getCodeImgUrl() {
		return codeImgUrl;
	}
	public void setCodeImgUrl(String codeImgUrl) {
		this.codeImgUrl = codeImgUrl;
	}
	@Override
	public String toString() {
		return "PayWeixinNativeResult [resultCode=" + resultCode + ", mchId=" + mchId + ", nonceStr=" + nonceStr
				+ ", errCode=" + errCode + ", errMsg=" + errMsg + ", sign=" + sign + ", codeUrl=" + codeUrl
				+ ", codeImgUrl=" + codeImgUrl + ", toString()=" + super.toString() + "]";
	}
	
}
